# -*- coding: utf-8 -*-
__author__ = 'gongqf'

from qrcode import *

qr = QRCode(version=1, error_correction=ERROR_CORRECT_H,box_size=12,border=1)
qr.add_data("HS.GDDS-DSZX/G.96/01")
qr.make(fit=True) # Generate the QRCode itself

# im contains a PIL.Image.Image object
im = qr.make_image()

# To save it
im.save("E:\\web\\flask\\gis\\filename.png")